import java.util.Scanner;

public class program14 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("Enter weight in pounds: ");
        double lb = in.nextDouble();
        System.out.print("Enter height in inches: ");
        double inch = in.nextDouble();
        double kg = lb * 0.45359237;
        double m  = inch * 0.0254;
        double bmi = kg / (m * m);
        System.out.printf("BMI is %.4f%n", bmi);
    }
}
